From: Bozhidar Batsov Date: Fri, 8 Nov 2013 21:41:25 +0000 (+0200) Subject: * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~2480 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=25864c18c556454aa492732a224b78191e6c8ed3;p=emacs.git * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): Fix incorrect case conditions. --- diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 7b40bf536f8..ef47916bca7 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -655,9 +655,9 @@ explicitly declared in magic comment." (t (when ruby-insert-encoding-magic-comment (let ((encoding-magic-comment-template (case ruby-encoding-magic-comment-style - ('ruby "# coding: %s") - ('emacs "# -*- coding: %s -*-") - ('custom ruby-custom-encoding-magic-comment-template)))) + (ruby "# coding: %s") + (emacs "# -*- coding: %s -*-") + (custom ruby-custom-encoding-magic-comment-template)))) (insert (format encoding-magic-comment-template coding-system) "\n")))))